package cn.com.oceansoft.osc.ms.utils;

/**
 * 特殊字符转义工具类
 * Created by Daizw on 2017/10/20.
 */
public class TokenUtil {
    public static String replaceSpecialChar(String url) {
        return url.replace("+", "2B2B").replace("/", "3B3B").replace(" ", "FGH");
    }

    public static String recoverySpecialChar(String url) {
        return url.replace("2B2B", "+").replace("3B3B", "/").replace("FGH", " ");
    }
}
